package com.ydd.result;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页查询结果
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PageResult implements Serializable {

    private Long count;//共返回的数据总数
    private Integer currentPage;//当前页码
    private List data; //列表数据
    private Integer pageSize; //本页显示数据
    private Integer totalPages;//总页数


}
